package com.xxxx.server.service;

import com.xxxx.server.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.pojo.Menu;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.Role;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2022-04-13
 */
public interface IAdminService extends IService<Admin> {

    RespBean login(String code, String username, String password, HttpServletRequest request);

    Admin getAdminbyUserName(String username);

    List<Role> getRoles(Integer adminId);

    List<Admin> getalladmin(String keyword);

    RespBean updateAdminPassword(String oldPass, String pass,Integer adminId);

    RespBean updateAdminUserFace(String url, Integer id, Authentication authentication);
}
